package com.smxy.daydayup.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.smxy.daydayup.pojo.HomeworkBank;
import com.smxy.daydayup.mapper.HomeworkBankMapper;
import com.smxy.daydayup.service.HomeworkBankService;
/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Service
public class HomeworkBankServiceImpl implements HomeworkBankService{

    @Resource
    private HomeworkBankMapper homeworkBankMapper;

    @Override
    public int deleteByPrimaryKey(Long homeworkBankId) {
        return homeworkBankMapper.deleteByPrimaryKey(homeworkBankId);
    }

    @Override
    public int insert(HomeworkBank record) {
        return homeworkBankMapper.insert(record);
    }

    @Override
    public int insertSelective(HomeworkBank record) {
        return homeworkBankMapper.insertSelective(record);
    }

    @Override
    public HomeworkBank selectByPrimaryKey(Long homeworkBankId) {
        return homeworkBankMapper.selectByPrimaryKey(homeworkBankId);
    }

    @Override
    public int updateByPrimaryKeySelective(HomeworkBank record) {
        return homeworkBankMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HomeworkBank record) {
        return homeworkBankMapper.updateByPrimaryKey(record);
    }

}
